/**
 * FileFind - ftp/shares indexing and search php engine
 * Module: webapp-jsf12
 * Description: Implementation of webapp using JSF 1.2
 * Copyright (c) 2003-2010 Rage Steel, www.gt2.ru
 */
package ru.ffind.webapp.jsf12.beans;

import java.util.List;

import ru.ffind.common.model.Host;
import ru.ffind.persist.service.HostService;

/**
 * Bean for displaying list of hosts.
 * 
 * @author Rage Steel
 */
public class HostBean {

        private HostService hostService;

    public void setHostService(HostService hostService) {
        this.hostService = hostService;
    }

	/**
	 * Return list of hosts.
	 * 
	 * @return
	 */
        public List<? extends Host> getHosts() {
            return hostService.findAll();
        }
	
}
